package com.zjuh.qss.biz.bo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.taobao.api.ApiException;
import com.taobao.api.domain.Item;
import com.taobao.api.domain.ItemCat;
import com.taobao.api.domain.TaobaokeItem;
import com.taobao.api.domain.User;


/**
 * @author pister
 * 2012-7-28 下午10:54:48
 */
public interface TaobaoOpenBO {
	
	List<TaobaokeItem> queryTaobaokeItems(List<Long> itemIds) throws ApiException;
	
	TaobaokeItem queryTaobaokeItem(Long itemId) throws ApiException;

	Item getTaobaoItem(Long itemId) throws ApiException;
	
	List<ItemCat> getItemCatsByParentId(long parentCid) throws ApiException;
	
	
	/**
	 * @param cid
	 * @param page
	 * @return
	 * @throws ApiException
	 * @Deprecated see searchTmallSelectedItems
	 */
	List<Item> searchItems(long cid, long page) throws ApiException;
	
	/**
	 * @param cid
	 * @param q
	 * @param page
	 * @return
	 * @throws ApiException
	 * @Deprecated see searchTmallSelectedItems
	 */
	List<Item> searchItems(long cid, String q, long page) throws ApiException;
	
	Map<String, User> getUserByNicks(Collection<String> nicks) throws ApiException;
	
	List<String> searchTmallSelectedItems(long cid) throws ApiException;
	
	List<TaobaokeItem> queryTaobaokeItemsByTrackIids(List<String> trackIids) throws ApiException;
	
	List<Item> queryItemDescsByTrackIids(List<String> trackIids) throws ApiException;
}
